package com.qf.service;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package com.qf.service
 * @Description:
 * @Date 2022/6/18 13:44
 */

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 查询用户数量
 */
@Service(value = "goods")
public class GoodsServiceimpl implements GoodsService{

    @Autowired
    private DtsGoodsMapper goods;
    @Override
    public int countGoods() {
        QueryWrapper queryWrapper =new QueryWrapper();
        queryWrapper.eq("deleted" ,false);

        Integer integer = goods.selectCount(queryWrapper);
        return integer;
    }
}
